package com.suneast.suneaststore.bean.personal.order;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class DetailBean {
    private int id;
    private int merchid;
    private String ordersn;
    private String lb_coin;
    private String deduction_lb_coin;
    private String price;
    private String goodsprice;
    private String dispatchprice;
    private String oldprice;
    private int status;
    private int paytype;
    private int iscomment;
    private int refundstate;
    private String createtime;
    private String paytime;
    private String sendtime;
    private int refundid;
    private String merchname;
    private String logo;
    private String mobile;
    private String remark;
    private int invoice_type;
    private String invoice_info;
    private String invoice_no;
    private String expressname;
    private List<GoodsBean> order_goods;
    private Address address;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMerchid() {
        return merchid;
    }

    public void setMerchid(int merchid) {
        this.merchid = merchid;
    }

    public String getOrdersn() {
        return ordersn;
    }

    public void setOrdersn(String ordersn) {
        this.ordersn = ordersn;
    }

    public String getLb_coin() {
        return lb_coin;
    }

    public void setLb_coin(String lb_coin) {
        this.lb_coin = lb_coin;
    }

    public String getDeduction_lb_coin() {
        return deduction_lb_coin;
    }

    public void setDeduction_lb_coin(String deduction_lb_coin) {
        this.deduction_lb_coin = deduction_lb_coin;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getGoodsprice() {
        return goodsprice;
    }

    public void setGoodsprice(String goodsprice) {
        this.goodsprice = goodsprice;
    }

    public String getDispatchprice() {
        return dispatchprice;
    }

    public void setDispatchprice(String dispatchprice) {
        this.dispatchprice = dispatchprice;
    }

    public String getOldprice() {
        return oldprice;
    }

    public void setOldprice(String oldprice) {
        this.oldprice = oldprice;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getStatus() {
        return status + 1;
    }

    public int getPaytype() {
        return paytype;
    }

    public void setPaytype(int paytype) {
        this.paytype = paytype;
    }

    public int getIscomment() {
        return iscomment;
    }

    public void setIscomment(int iscomment) {
        this.iscomment = iscomment;
    }

    public int getRefundstate() {
        return refundstate;
    }

    public void setRefundstate(int refundstate) {
        this.refundstate = refundstate;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getPaytime() {
        return paytime;
    }

    public void setPaytime(String paytime) {
        this.paytime = paytime;
    }

    public String getSendtime() {
        return sendtime;
    }

    public void setSendtime(String sendtime) {
        this.sendtime = sendtime;
    }

    public int getRefundid() {
        return refundid;
    }

    public void setRefundid(int refundid) {
        this.refundid = refundid;
    }

    public String getMerchname() {
        return merchname;
    }

    public void setMerchname(String merchname) {
        this.merchname = merchname;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getInvoice_type() {
        return invoice_type;
    }

    public void setInvoice_type(int invoice_type) {
        this.invoice_type = invoice_type;
    }

    public String getInvoice_info() {
        return invoice_info;
    }

    public void setInvoice_info(String invoice_info) {
        this.invoice_info = invoice_info;
    }

    public String getInvoice_no() {
        return invoice_no;
    }

    public void setInvoice_no(String invoice_no) {
        this.invoice_no = invoice_no;
    }

    public String getExpressname() {
        return expressname;
    }

    public void setExpressname(String expressname) {
        this.expressname = expressname;
    }

    public List<GoodsBean> getOrder_goods() {
        return order_goods;
    }

    public void setOrder_goods(List<GoodsBean> order_goods) {
        this.order_goods = order_goods;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public static class Address {
        private String realname;
        private String mobile;
        private String addressInfo;

        public String getRealname() {
            return realname;
        }

        public void setRealname(String realname) {
            this.realname = realname;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getAddressInfo() {
            return addressInfo;
        }

        public void setAddressInfo(String addressInfo) {
            this.addressInfo = addressInfo;
        }
    }

    public static class GoodsBean implements Parcelable {
        private String title;
        private int orderid;
        private int goodsid;
        private int merchid;
        private String price;
        private String realprice;
        private String oldprice;
        private int total;
        private String optionname;
        private int optionid;
        private String goodssn;
        private int is_custom;
        private String install_price;
        private String machining_price;
        private int cl_price;
        private int sj_price;
        private String thumb;

        public GoodsBean() {}

        private GoodsBean(Parcel in) {
            title = in.readString();
            orderid = in.readInt();
            goodsid = in.readInt();
            merchid = in.readInt();
            price = in.readString();
            realprice = in.readString();
            oldprice = in.readString();
            total = in.readInt();
            optionname = in.readString();
            optionid = in.readInt();
            goodssn = in.readString();
            is_custom = in.readInt();
            install_price = in.readString();
            machining_price = in.readString();
            cl_price = in.readInt();
            sj_price = in.readInt();
            thumb = in.readString();
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getOrderid() {
            return orderid;
        }

        public void setOrderid(int orderid) {
            this.orderid = orderid;
        }

        public int getGoodsid() {
            return goodsid;
        }

        public void setGoodsid(int goodsid) {
            this.goodsid = goodsid;
        }

        public int getMerchid() {
            return merchid;
        }

        public void setMerchid(int merchid) {
            this.merchid = merchid;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getRealprice() {
            return realprice;
        }

        public void setRealprice(String realprice) {
            this.realprice = realprice;
        }

        public String getOldprice() {
            return oldprice;
        }

        public void setOldprice(String oldprice) {
            this.oldprice = oldprice;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public String getOptionname() {
            return optionname;
        }

        public void setOptionname(String optionname) {
            this.optionname = optionname;
        }

        public int getOptionid() {
            return optionid;
        }

        public void setOptionid(int optionid) {
            this.optionid = optionid;
        }

        public String getGoodssn() {
            return goodssn;
        }

        public void setGoodssn(String goodssn) {
            this.goodssn = goodssn;
        }

        public int getIs_custom() {
            return is_custom;
        }

        public void setIs_custom(int is_custom) {
            this.is_custom = is_custom;
        }

        public String getInstall_price() {
            return install_price;
        }

        public void setInstall_price(String install_price) {
            this.install_price = install_price;
        }

        public String getMachining_price() {
            return machining_price;
        }

        public void setMachining_price(String machining_price) {
            this.machining_price = machining_price;
        }

        public int getCl_price() {
            return cl_price;
        }

        public void setCl_price(int cl_price) {
            this.cl_price = cl_price;
        }

        public int getSj_price() {
            return sj_price;
        }

        public void setSj_price(int sj_price) {
            this.sj_price = sj_price;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(title);
            dest.writeInt(orderid);
            dest.writeInt(goodsid);
            dest.writeInt(merchid);
            dest.writeString(price);
            dest.writeString(realprice);
            dest.writeString(oldprice);
            dest.writeInt(total);
            dest.writeString(optionname);
            dest.writeInt(optionid);
            dest.writeString(goodssn);
            dest.writeInt(is_custom);
            dest.writeString(install_price);
            dest.writeString(machining_price);
            dest.writeInt(cl_price);
            dest.writeInt(sj_price);
            dest.writeString(thumb);
        }

        public static final Creator<GoodsBean> CREATOR = new Creator<GoodsBean>() {
            @Override
            public GoodsBean createFromParcel(Parcel in) {
                return new GoodsBean(in);
            }

            @Override
            public GoodsBean[] newArray(int size) {
                return new GoodsBean[size];
            }
        };
    }
}